﻿using System.Collections.Generic;
using System.Runtime.Serialization;
using NewsService.MessageBase;
using ServiceNews.DataTransferObjectMapper;

namespace NewsService.Messages
{
    /// <summary>
    /// NewsLogResponse
    /// </summary>
    [DataContract(Namespace = "http://www.yourcompany.com/types/")]
    public class NewsLogResponse : ResponseBase
    {
        /// <summary>
        /// Constructor
        /// </summary>
        public NewsLogResponse() { }
        /// <summary>
        /// Initializes a new instance of the <see cref="correlationId"/> class.
        /// </summary>
        /// <param name="correlationId">The correlation identifier for request and response.</param>
        public NewsLogResponse(string correlationId) : base(correlationId) { }
        /// <summary>
        /// The NewsLogDto
        /// </summary>
        [DataMember]
        public IList<NewsLogDto> Items;
        /// <summary>
        /// The NewsLogDto
        /// </summary>
        [DataMember]
        public NewsLogDto Item;
    }
}
